

<%@ page import="hc.uco.Riscos" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'riscos.label', default: 'Riscos')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${riscosInstance}">
            <div class="errors">
                <g:renderErrors bean="${riscosInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="ahaPontos"><g:message code="riscos.ahaPontos.label" default="Aha Pontos" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'ahaPontos', 'errors')}">
                                    <g:select name="ahaPontos" from="${riscosInstance.constraints.ahaPontos.inList}" value="${fieldValue(bean: riscosInstance, field: 'ahaPontos')}" valueMessagePrefix="riscos.ahaPontos" noSelection="['': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="aha30dias"><g:message code="riscos.aha30dias.label" default="Aha30dias" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'aha30dias', 'errors')}">
                                    <g:textField name="aha30dias" value="${fieldValue(bean: riscosInstance, field: 'aha30dias')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="aha6meses"><g:message code="riscos.aha6meses.label" default="Aha6meses" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'aha6meses', 'errors')}">
                                    <g:textField name="aha6meses" value="${fieldValue(bean: riscosInstance, field: 'aha6meses')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="gracePontos"><g:message code="riscos.gracePontos.label" default="Grace Pontos" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'gracePontos', 'errors')}">
                                    <g:select name="gracePontos" from="${riscosInstance.constraints.gracePontos.inList}" value="${fieldValue(bean: riscosInstance, field: 'gracePontos')}" valueMessagePrefix="riscos.gracePontos" noSelection="['': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="grace30dias"><g:message code="riscos.grace30dias.label" default="Grace30dias" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'grace30dias', 'errors')}">
                                    <g:textField name="grace30dias" value="${fieldValue(bean: riscosInstance, field: 'grace30dias')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="grace6meses"><g:message code="riscos.grace6meses.label" default="Grace6meses" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'grace6meses', 'errors')}">
                                    <g:textField name="grace6meses" value="${fieldValue(bean: riscosInstance, field: 'grace6meses')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="timiPontos"><g:message code="riscos.timiPontos.label" default="Timi Pontos" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'timiPontos', 'errors')}">
                                    <g:select name="timiPontos" from="${riscosInstance.constraints.timiPontos.inList}" value="${fieldValue(bean: riscosInstance, field: 'timiPontos')}" valueMessagePrefix="riscos.timiPontos" noSelection="['': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="timi30dias"><g:message code="riscos.timi30dias.label" default="Timi30dias" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'timi30dias', 'errors')}">
                                    <g:textField name="timi30dias" value="${fieldValue(bean: riscosInstance, field: 'timi30dias')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="timi6meses"><g:message code="riscos.timi6meses.label" default="Timi6meses" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'timi6meses', 'errors')}">
                                    <g:textField name="timi6meses" value="${fieldValue(bean: riscosInstance, field: 'timi6meses')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="crusadePerc"><g:message code="riscos.crusadePerc.label" default="Crusade Perc" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'crusadePerc', 'errors')}">
                                    <g:textField name="crusadePerc" value="${fieldValue(bean: riscosInstance, field: 'crusadePerc')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="jaccPerc"><g:message code="riscos.jaccPerc.label" default="Jacc Perc" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'jaccPerc', 'errors')}">
                                    <g:textField name="jaccPerc" value="${fieldValue(bean: riscosInstance, field: 'jaccPerc')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="avch"><g:message code="riscos.avch.label" default="Avch" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'avch', 'errors')}">
                                    <g:checkBox name="avch" value="${riscosInstance?.avch}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="ch"><g:message code="riscos.ch.label" default="Ch" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'ch', 'errors')}">
                                    <g:textField name="ch" value="${riscosInstance?.ch}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="crusadePontos"><g:message code="riscos.crusadePontos.label" default="Crusade Pontos" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'crusadePontos', 'errors')}">
                                    <g:textField name="crusadePontos" value="${fieldValue(bean: riscosInstance, field: 'crusadePontos')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="hbDia1"><g:message code="riscos.hbDia1.label" default="Hb Dia1" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'hbDia1', 'errors')}">
                                    <g:textField name="hbDia1" value="${fieldValue(bean: riscosInstance, field: 'hbDia1')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="hbDia10"><g:message code="riscos.hbDia10.label" default="Hb Dia10" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'hbDia10', 'errors')}">
                                    <g:textField name="hbDia10" value="${fieldValue(bean: riscosInstance, field: 'hbDia10')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="hbDia2"><g:message code="riscos.hbDia2.label" default="Hb Dia2" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'hbDia2', 'errors')}">
                                    <g:textField name="hbDia2" value="${fieldValue(bean: riscosInstance, field: 'hbDia2')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="hbDia3"><g:message code="riscos.hbDia3.label" default="Hb Dia3" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'hbDia3', 'errors')}">
                                    <g:textField name="hbDia3" value="${fieldValue(bean: riscosInstance, field: 'hbDia3')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="hbDia4"><g:message code="riscos.hbDia4.label" default="Hb Dia4" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'hbDia4', 'errors')}">
                                    <g:textField name="hbDia4" value="${fieldValue(bean: riscosInstance, field: 'hbDia4')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="hbDia5"><g:message code="riscos.hbDia5.label" default="Hb Dia5" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'hbDia5', 'errors')}">
                                    <g:textField name="hbDia5" value="${fieldValue(bean: riscosInstance, field: 'hbDia5')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="hbDia6"><g:message code="riscos.hbDia6.label" default="Hb Dia6" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'hbDia6', 'errors')}">
                                    <g:textField name="hbDia6" value="${fieldValue(bean: riscosInstance, field: 'hbDia6')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="hbDia7"><g:message code="riscos.hbDia7.label" default="Hb Dia7" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'hbDia7', 'errors')}">
                                    <g:textField name="hbDia7" value="${fieldValue(bean: riscosInstance, field: 'hbDia7')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="hbDia8"><g:message code="riscos.hbDia8.label" default="Hb Dia8" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'hbDia8', 'errors')}">
                                    <g:textField name="hbDia8" value="${fieldValue(bean: riscosInstance, field: 'hbDia8')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="hbDia9"><g:message code="riscos.hbDia9.label" default="Hb Dia9" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'hbDia9', 'errors')}">
                                    <g:textField name="hbDia9" value="${fieldValue(bean: riscosInstance, field: 'hbDia9')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="jaccPontos"><g:message code="riscos.jaccPontos.label" default="Jacc Pontos" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'jaccPontos', 'errors')}">
                                    <g:textField name="jaccPontos" value="${fieldValue(bean: riscosInstance, field: 'jaccPontos')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="paciente"><g:message code="riscos.paciente.label" default="Paciente" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'paciente', 'errors')}">
                                    <g:select name="paciente.id" from="${hc.uco.Paciente.list()}" optionKey="id" value="${riscosInstance?.paciente?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="sangraDelta"><g:message code="riscos.sangraDelta.label" default="Sangra Delta" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'sangraDelta', 'errors')}">
                                    <g:textField name="sangraDelta" value="${riscosInstance?.sangraDelta}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="sangramento"><g:message code="riscos.sangramento.label" default="Sangramento" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'sangramento', 'errors')}">
                                    <g:checkBox name="sangramento" value="${riscosInstance?.sangramento}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="transfusao"><g:message code="riscos.transfusao.label" default="Transfusao" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: riscosInstance, field: 'transfusao', 'errors')}">
                                    <g:checkBox name="transfusao" value="${riscosInstance?.transfusao}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
